package com.coldchain.hz.api;

import com.coldchain.MapperUtils;
import com.coldchain.authclient.annotation.CheckUserToken;
import com.coldchain.common.msg.ObjectRestResponse;
import com.coldchain.hz.vo.OrderData;
import com.fangliai.core.context.BaseContextHandler;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import springfox.documentation.annotations.ApiIgnore;

@Controller
@CheckUserToken
@ApiIgnore
public class AccountHZController {
	
	@RequestMapping(MapperUtils.SHOWRECHARGELOG)
	public ModelAndView showreChargeLog(){
		ModelAndView view = new ModelAndView(MapperUtils.SHOWRECHARGELOG);
		return view;
	}
	
	@RequestMapping(MapperUtils.ACCOUNTSORDER)
	public ModelAndView accountsOrder(){
		ModelAndView view = new ModelAndView(MapperUtils.ACCOUNTSORDER);
		view.addObject("user",BaseContextHandler.getUserID());
		return view;
	}
	
	@RequestMapping(MapperUtils.ACCOUNTSORDERDATA)
	public ObjectRestResponse<?> accountsOrderData(OrderData orderData){
		orderData.setCompanyId(BaseContextHandler.getUserID());
		
		return null;
	}
	
	
	
	@RequestMapping(MapperUtils.ACCOUNT)
	public ModelAndView account(){
		ModelAndView view = new ModelAndView(MapperUtils.ACCOUNT);
		return view;
	}
	@RequestMapping(MapperUtils.VEHICLE)
	public ModelAndView vehicle(){
		ModelAndView view = new ModelAndView(MapperUtils.VEHICLE);
		return view;
	}
}
